<?php
namespace app\api\validate\1;


class UserBank extends Base
{
    public function sceneEdit()
    {
        return $this->only(['real_name', 'bank_name', 'id_card', 'phone',
            'bank_type', 'bank_type2', 'card_no', 'idcard_start', 'idcard_end', 'idcard_address', 'address'
        ])
            ->append('real_name', 'require')
            ->append('bank_name', 'require')
            ->append('id_card', 'require')
            ->append('phone', 'require')
            ->append('bank_type', 'require')
            ->append('bank_type2', 'require')
            ->append('card_no', 'require')
            ->append('idcard_start', 'require')
            ->append('idcard_end', 'require')
            ->append('idcard_address', 'require')
            ->append('address', 'require');
    }
//    public function sceneEdit()
//    {
//        return $this->only(['real_name, bank_name, id_card, phone,
//            bank_type, bank_type2, card_no', 'idcard_start', 'idcard_end', 'idcard_address', 'address',
////            'zm', 'fm'
//        ])
//            ->append('real_name', 'require')
//            ->append('bank_name', 'require')
//            ->append('id_card', 'require')
//            ->append('phone', 'require')
//            ->append('bank_type', 'require')
//            ->append('bank_type2', 'require')
//            ->append('card_no', 'require')
//            ->append('idcard_start', 'require')
//            ->append('idcard_end', 'require')
//            ->append('idcard_address', 'require')
//            ->append('address', 'require');
////            ->append('zm', 'require')
////            ->append('fm', 'require');
//    }

    protected $message = [
//        'zm.require' => '请上传身份证正面照片',
//        'fm.require' => '请上传身份证反面照片',
        'bank_type2.require' => '请选择正确的银行',
    ];
}